package study.week05.config;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
import study.week05.entity.Klass;
import study.week05.entity.School;
import study.week05.entity.Student;

public class MyNameSpaceHandler extends NamespaceHandlerSupport {
    @Override
    public void init() {
        registerBeanDefinitionParser("student",new CustomBeanDefinitionParser(Student.class));
        registerBeanDefinitionParser("class",new CustomBeanDefinitionParser(Klass.class));
        registerBeanDefinitionParser("school",new CustomBeanDefinitionParser(School.class));
    }
}